package com.education.mymediaplayer.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.education.mymediaplayer.R;
import com.education.mymediaplayer.ui.customer.ControlActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SplashActivity extends AppCompatActivity {

    @BindView(R.id.button_surfaceview)
    Button buttonSurfaceview;
    @BindView(R.id.button_videoview)
    Button buttonVideoview;
    @BindView(R.id.button_list)
    Button buttonList;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.button_surfaceview, R.id.button_videoview, R.id.button_list})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.button_surfaceview:
                startActivity(new Intent(getApplicationContext(), ControlActivity.class));
                break;
            case R.id.button_videoview:
                break;
            case R.id.button_list:
                break;
        }
    }
}
